
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Ubuntu · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="docker.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">前言</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    序言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    安装
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="ubuntu.html">
            
                <a href="ubuntu.html">
            
                    
                    Ubuntu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="docker.html">
            
                <a href="docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">项目</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../project/myproject.html">
            
                <a href="../project/myproject.html">
            
                    
                    项目中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../issue/">
            
                <a href="../issue/">
            
                    
                    问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../issue/issue.html">
            
                <a href="../issue/issue.html">
            
                    
                    问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../issue/kanban.html">
            
                <a href="../issue/kanban.html">
            
                    
                    看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../issue/activity.html">
            
                <a href="../issue/activity.html">
            
                    
                    活动日志
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../issue/version.html">
            
                <a href="../issue/version.html">
            
                    
                    版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../issue/module.html">
            
                <a href="../issue/module.html">
            
                    
                    模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../issue/team.html">
            
                <a href="../issue/team.html">
            
                    
                    成员
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">方案配置</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../scheme/">
            
                <a href="../scheme/">
            
                    
                    全局方案
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="../scheme/state.html">
            
                <a href="../scheme/state.html">
            
                    
                    状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="../scheme/workflow.html">
            
                <a href="../scheme/workflow.html">
            
                    
                    工作流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="../scheme/field.html">
            
                <a href="../scheme/field.html">
            
                    
                    字段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.4" data-path="../scheme/screen.html">
            
                <a href="../scheme/screen.html">
            
                    
                    界面
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.5" data-path="../scheme/resolution.html">
            
                <a href="../scheme/resolution.html">
            
                    
                    解决结果
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.6" data-path="../scheme/priority.html">
            
                <a href="../scheme/priority.html">
            
                    
                    优先级
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.7" data-path="../scheme/role.html">
            
                <a href="../scheme/role.html">
            
                    
                    角色权限
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.8" data-path="../scheme/events.html">
            
                <a href="../scheme/events.html">
            
                    
                    通知事件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../scheme/">
            
                <a href="../scheme/">
            
                    
                    本地方案
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="../scheme/type.html">
            
                <a href="../scheme/type.html">
            
                    
                    类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.2" data-path="../scheme/state.html">
            
                <a href="../scheme/state.html">
            
                    
                    状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.3" data-path="../scheme/workflow.html">
            
                <a href="../scheme/workflow.html">
            
                    
                    工作流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.4" data-path="../scheme/field.html">
            
                <a href="../scheme/field.html">
            
                    
                    字段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.5" data-path="../scheme/screen.html">
            
                <a href="../scheme/screen.html">
            
                    
                    界面
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.6" data-path="../scheme/resolution.html">
            
                <a href="../scheme/resolution.html">
            
                    
                    解决结果
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.7" data-path="../scheme/priority.html">
            
                <a href="../scheme/priority.html">
            
                    
                    优先级
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.8" data-path="../scheme/role.html">
            
                <a href="../scheme/role.html">
            
                    
                    角色权限
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.9" data-path="../scheme/events.html">
            
                <a href="../scheme/events.html">
            
                    
                    通知事件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">用户管理</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../user/user.html">
            
                <a href="../user/user.html">
            
                    
                    用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../user/group.html">
            
                <a href="../user/group.html">
            
                    
                    组
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">项目管理</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../project/project.html">
            
                <a href="../project/project.html">
            
                    
                    项目
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">设置</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../setting/my.html">
            
                <a href="../setting/my.html">
            
                    
                    个人设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../setting/sys.html">
            
                <a href="../setting/sys.html">
            
                    
                    系统设置
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Ubuntu</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="ubuntu&#x5B89;&#x88C5;">Ubuntu&#x5B89;&#x88C5;</h2>
<p>ubuntu 16.04&#xFF0C;php7.0&#xFF0C;root&#x7528;&#x6237;&#x4E3A;&#x4F8B;, &#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x963F;&#x91CC;&#x4E91;&#x955C;&#x50CF;&#x6E90;  </p>
<h2 id="step-1">step 1</h2>
<p>&#x5B89;&#x88C5;Apache&#xFF1A;  </p>
<blockquote>
<p>apt-get install apache2</p>
</blockquote>
<h2 id="step-2">step 2</h2>
<p>&#x5B89;&#x88C5;php&#x4EE5;&#x53CA;&#x76F8;&#x5173;&#x7EC4;&#x4EF6;&#x3002;php&#x5EFA;&#x8BAE;&#x5B89;&#x88C5;7.0&#xFF0C;&#x5927;&#x4E8E;&#x7B49;&#x4E8E;5.5.9&#x5176;&#x4ED6;&#x7248;&#x672C;&#x4E5F;&#x53EF;&#x4EE5;  </p>
<blockquote>
<p>apt-get install php7.0 php-mbstring php-gd php-mcrypt php-mongodb  </p>
</blockquote>
<p>&#x5B89;&#x88C5;apache&#x7684;php&#x89E3;&#x6790;&#x7EC4;&#x4EF6;&#xFF1A;  </p>
<blockquote>
<p>apt-get install libapache2-mod-php7.0</p>
</blockquote>
<h2 id="step-3">step 3</h2>
<p>&#x5B89;&#x88C5;mongodb&#xFF1A;  </p>
<blockquote>
<p>apt-get install mongodb  </p>
</blockquote>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x6D4B;&#x8BD5;mongodb&#x662F;&#x5426;&#x5B89;&#x88C5;&#x6210;&#x529F;&#xFF0C;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#x548C;&#x7528;&#x6237;&#xFF0C;&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#x56FE;&#xFF1A;<br><img src="http://actionview.cn/mongo-db-user.png" alt="">  </p>
<h2 id="step-4">step 4</h2>
<p>&#x5168;&#x5C40;&#x5B89;&#x88C5;composer&#xFF1A;  </p>
<blockquote>
<p>curl -sS <a href="https://getcomposer.org/installer" target="_blank">https://getcomposer.org/installer</a> | php<br>mv composer.phar /usr/local/bin/composer  </p>
</blockquote>
<p>&#x4E0B;&#x8F7D;&#x7A0B;&#x5E8F;&#xFF1A;  </p>
<blockquote>
<p>cd /var/www/<br>git clone <a href="https://github.com/lxerxa/actionview.git" target="_blank">https://github.com/lxerxa/actionview.git</a> actionview  </p>
</blockquote>
<p>&#x5B89;&#x88C5;&#x4F9D;&#x8D56;&#xFF1A;  </p>
<blockquote>
<p>cd actionview<br>composer install --no-dev  </p>
</blockquote>
<p>&#x6267;&#x884C;&#x914D;&#x7F6E;&#x811A;&#x672C;&#xFF1A;  </p>
<blockquote>
<p>sh config.sh  </p>
</blockquote>
<p>&#x4FEE;&#x6539;&#x6570;&#x636E;&#x5E93;&#x8FDE;&#x63A5;&#x53C2;&#x6570;&#xFF0C;&#x5728;&#x62F7;&#x8D1D;&#x540E;&#x7684;.env&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#xFF1A;  </p>
<blockquote>
<p>cp .env.example .env  </p>
<p>DB_HOST=127.0.0.1<br>DB_DATABASE=actionviewdb<br>DB_USERNAME=actionview<br>DB_PASSWORD=secret  </p>
</blockquote>
<p>&#x6267;&#x884C;db&#x6570;&#x636E;&#x521D;&#x59CB;&#x5316;&#x811A;&#x672C;&#xFF1A;  </p>
<blockquote>
<p>mongorestore -h 127.0.0.1 -u actionview -p secret -d actionviewdb --drop ./dbdata  </p>
</blockquote>
<p>&#x914D;&#x7F6E;Apache&#xFF1A;  </p>
<blockquote>
<p>DocumentRoot /var/www/actionview/public<br>&lt;Directory /var/www/actionview/public&gt;<br>&#x2003;Options FollowSymLinks<br>&#x2003;Order deny,allow<br>&#x2003;AllowOverride All<br>&lt;/Directory&gt;  </p>
</blockquote>
<p>&#x542F;&#x7528;rewrite&#x6A21;&#x5757;&#xFF0C;&#x91CD;&#x65B0;&#x542F;&#x52A8;Apache&#xFF1A;  </p>
<blockquote>
<p>a2enmod rewrite<br>service apache2 stop<br>service apache2 start  </p>
</blockquote>
<h2 id="step-5">step 5</h2>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#xFF0C;&#x795D;&#x597D;&#x8FD0;&#xFF01;<br>&#x8BBF;&#x95EE;&#x7CFB;&#x7EDF;&#xFF1A;<a href="http://xxx.xxx.xxx.xxx&#xFF0C;&#x7BA1;&#x7406;&#x5458;&#x767B;&#x5F55;&#xFF1A;user" target="_blank">http://xxx.xxx.xxx.xxx&#xFF0C;&#x7BA1;&#x7406;&#x5458;&#x767B;&#x5F55;&#xFF1A;user</a>: admin@action.view, password: actionview  </p>
<h2 id="step-6">step 6</h2>
<p>&#x90AE;&#x4EF6;&#x901A;&#x77E5;&#x914D;&#x7F6E;&#xFF0C;&#x5982;&#x4E0D;&#x9700;&#x8981;&#x53EF;&#x5FFD;&#x7565;&#x6B64;&#x6B65;&#x9AA4;&#x3002;  </p>
<p>&#x5728;.env&#x6587;&#x4EF6;&#x91CC;&#x914D;&#x7F6E;&#x53C2;&#x6570;&#xFF0C;&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#xFF1A;  </p>
<blockquote>
<p>MAIL_DRIVER=smtp<br>MAIL_HOST=smpt.126.com<br>MAIL_PORT=465<br>MAIL_USERNAME=xxx<br>MAIL_PASSWORD=xxx<br>MAIL_ENCRYPTION=ssl<br>MAIL_ADDRESS=xxx@126.com<br>HTTP_HOST=<a href="http://www.actionview.cn" target="_blank">http://www.actionview.cn</a>  </p>
</blockquote>
<p>crontab&#x91CC;&#x6DFB;&#x52A0;&#xFF1A;  </p>
<blockquote>
<p>* * * * * php /var/www/actionview/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1  </p>
</blockquote>
<p>&#x91CD;&#x65B0;&#x542F;&#x52A8;cron&#x670D;&#x52A1;&#xFF1A;  </p>
<blockquote>
<p>service cron restart  </p>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 安装">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="docker.html" class="navigation navigation-next " aria-label="Next page: Docker">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Ubuntu","level":"1.2.1","depth":2,"next":{"title":"Docker","level":"1.2.2","depth":2,"path":"install/docker.md","ref":"install/docker.md","articles":[]},"previous":{"title":"安装","level":"1.2","depth":1,"path":"install/index.md","ref":"install/index.md","articles":[{"title":"Ubuntu","level":"1.2.1","depth":2,"path":"install/ubuntu.md","ref":"install/ubuntu.md","articles":[]},{"title":"Docker","level":"1.2.2","depth":2,"path":"install/docker.md","ref":"install/docker.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"install/ubuntu.md","mtime":"2018-03-28T14:19:33.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-03-28T12:33:30.363Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

